package main.core;

public class Settings {
    private static Settings m_instance = null;
    private float m_price_change_sensibility;
 
    private Settings()
    {
    	m_price_change_sensibility = 1.0f;
    }
 
    private static void createInstance()
    {
        if (m_instance == null) m_instance = new Settings();
    }
 
    public static Settings getInstance ()
    {
        if (m_instance == null)
        	createInstance();
        return m_instance;
    }
    
    public float price_change_sensibility()
    {
    	return this.m_price_change_sensibility;
    }
    
    public void setPrice_change_sensibility(float price_change_sensibility)
    {
    	this.m_price_change_sensibility = price_change_sensibility;
    }
    
    public void setPrice_change_sensibility(String price_change_sensibility)
    {
    	setPrice_change_sensibility(Float.parseFloat(price_change_sensibility));
    }
}